{{! -------------------------------------------------------------------------- }}
{{! Copyright 2002-2023, OpenNebula Project, OpenNebula Systems                }}
{{!                                                                            }}
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
{{! not use this file except in compliance with the License. You may obtain    }}
{{! a copy of the License at                                                   }}
{{!                                                                            }}
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
{{!                                                                            }}
{{! Unless required by applicable law or agreed to in writing, software        }}
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
{{! See the License for the specific language governing permissions and        }}
{{! limitations under the License.                                             }}
{{! -------------------------------------------------------------------------- }}
<div id="tabs-backup" class="row collapse">
  <div class="small-12 columns ">
    <div class="row">
      <br/>
      <span>{{tr "To enable periodic backups please refer to \"Actions\" tab"}}</span>
      <br/>
      <br/>
    </div>
    <div class="row">
      <div class="small-12 columns">
        <input type="checkbox" id="backup-volatile">
        <label for="backup-volatile">
          {{tr "Backup volatile disks?"}}
        </label>
      </div>
      <div class="small-12 columns">
        <label for="fs-freeze">
          {{tr "FS Freeze"}}
          {{{tip (tr "How the FS is freeze for running VMs. When possible backups are crash consistent")}}}
        </label>
        <select id="fs-freeze">
          <option value="-" selected>-</option>
          <option value="NONE">{{tr "None"}}</option>
          <option value="AGENT">{{tr "QEMU Agent"}}</option>
          <option value="SUSPEND">{{tr "Suspend"}}</option>
        </select>
      </div>
      <div class="small-12 columns">
        <label for="keep-last">
          {{tr "How many backups do you want to keep?"}}
        </label>
        <input type="number" id="keep-last" min="0" class="disabled_firecracker">
      </div>
      <div class="small-12 columns">
        <label for="mode">
          {{tr "Mode"}}
        </label>
        <select id="mode">
          <option value="-" selected>-</option>
          <option value="FULL">{{tr "Full"}}</option>
          <option value="INCREMENT">{{tr "Increment"}}</option>
        </select>
      </div>
      <div class="small-12 columns hide">
        <label for="increment-mode" >
          {{tr "Increment Mode"}}
        </label>
        <select id="increment-mode">
          <option value="">{{tr "-"}}</option>
          <option value="CBT">{{tr "CBT"}}</option>
          <option value="SNAPSHOT">{{tr "Snapshot"}}</option>
        </select>
      </div>
    </div>
  </div>
</div>
